<template>
	<up-popup :show="show" round="24rpx" @close="close">
		<view class="popup1 pdd32">
			<view class="edit" @click="editItem">
				<up-icon size="32rpx" :name="config.getImage('edit')"></up-icon>
				<view>编辑</view>
			</view>
			<view class="delete" @click="deleteItem">
				<up-icon size="32rpx" :name="config.getImage('delete')"></up-icon>
				<view>删除</view>
			</view>
		</view>
		<view class="pdd32 btn1">
			<view class="off" @click="close">取消</view>
		</view>
	</up-popup>
</template>

<script setup>
import config from '@/config.js';
const props = defineProps({
	show: {
		type: Boolean,
		default: false
	}
});
const emit = defineEmits(['editItem','close','deleteItem']);
const editItem = () => {
	emit('editItem', '点击编辑了');
};
const deleteItem = () => {
	emit('deleteItem', '点击删除了');
};
const close = ()=>{
	emit('close', '点击取消了');
}
</script>
<style>
</style>